interface _CU_ {
    /**
     * 判断是否为子类
     * @param superClass 父类型
     * @param subClass 子类型
     * @returns true: 是子类型; false: 不是子类型;
     */
    isSubClass(superClass: any, subClass: any): any;
}
{
    Object.defineProperty(_CU_.prototype, 'isSubClass', {
        writable: false,
        configurable: false,
        enumerable: false,
        value: (superClass: any, subClass: any) => {
            let prototype = subClass.prototype;
            while (prototype) {
                if (prototype === superClass.prototype) {
                    return true;
                }
                prototype = prototype.__proto__;
            }
            return false;
        }
    });
}
